package com.eattravel.mapper;

import com.eattravel.pojo.StorePicture;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StorePictureMapper {

    List<StorePicture> findPictureByColl(String storeId);

    /**
     * 根据店铺的id去查询所对应的图片
     * 当前用于显示在主页当中的热门商铺模块
     * @param id
     * @return picture对象
     */
    List<StorePicture> findPictureById(String id);

    /**
     * 通过商店的Id查询对应的图片
     * @param storeId
     * @return
     */
    List<StorePicture> findPictureByStoId(String storeId);
}